package cn.zjitc.quickstart.filter;

import javax.servlet.*;
import javax.servlet.annotation.WebFilter;
import java.io.IOException;

/**
 * 过滤器快速入门程序--多个过滤器的执行顺序
 */
//@WebFilter("/*")
public class Demo6Filter implements Filter {
    public void doFilter(ServletRequest req, ServletResponse resp, FilterChain chain) throws ServletException, IOException {
        System.out.println("filterDemo6执行了...");
        chain.doFilter(req, resp);
        System.out.println("filterDemo6回来了...");
    }

    public void init(FilterConfig config) throws ServletException {
    }

    public void destroy() {
    }

}
